package com.naiterui.ehp.bs.doctor.domain;

import static javax.persistence.GenerationType.IDENTITY;

import java.io.Serializable;
import java.util.Date;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;
import javax.persistence.Table;

/**
 * <pre>
 *    app和h5的版本映射关系
 * </pre>
 *
 * @author gongbaoqiang
 * @date 2019/7/15 16:20
 * @since 1.0.0
 */
@Entity
@Table(name = "dr_app_h5_mapper")
public class DrAppH5Mapper implements Serializable {

    /**
     * 主键
     */
    @Id
    @GeneratedValue(strategy = IDENTITY)
    @Column(name = "id")
    private Long id;

    /**
     * app版本号
     */
    @Column(name = "app_version")
    private String appVersion;
    /**
     * h5版本号
     */
    @Column(name = "h5_version")
    private String h5Version;
    /**
     * h5压缩包地址
     */
    @Column(name = "h5_url")
    private String h5Url;
    /**
     * 设备类型：1/android, 2/ios
     */
    @Column(name = "device_type")
    private Integer deviceType;
    /**
     * 创建时间
     */
    @Column(name = "created_at")
    private Date createdAt;


    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }


    public String getAppVersion() {
        return appVersion;
    }

    public void setAppVersion(String appVersion) {
        this.appVersion = appVersion;
    }


    public String getH5Version() {
        return h5Version;
    }

    public void setH5Version(String h5Version) {
        this.h5Version = h5Version;
    }


    public String getH5Url() {
        return h5Url;
    }

    public void setH5Url(String h5Url) {
        this.h5Url = h5Url;
    }


    public Integer getDeviceType() {
        return deviceType;
    }

    public void setDeviceType(Integer deviceType) {
        this.deviceType = deviceType;
    }


    public Date getCreatedAt() {
        return createdAt;
    }

    public void setCreatedAt(Date createdAt) {
        this.createdAt = createdAt;
    }
}
